using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// NguoiSuDung object for NHibernate mapped table Categories.
    /// </summary>
    /// 
    [Serializable]
    public class NguoiSuDungEx : DomainObject<System.String>
    {
        private System.String _TenNguoiSuDung;
        private System.String _MaPhongBan;
        private System.String _ChucVu;
        private System.Boolean _TrangThai = true;
        private System.String _TenTruyCap;
        private System.Int32 _ThuTu;
        
        public NguoiSuDungEx()
        {
            base.ID = Guid.NewGuid().ToString().ToUpper();
        }

        public NguoiSuDungEx(System.String id)
        {
            base.ID = id;
        }

        public virtual System.Int32 ThuTu
        {
            get { return _ThuTu; }
            set { _ThuTu = value; }
        }

        public virtual System.Boolean TrangThai
        {
            get { return _TrangThai; }
            set { _TrangThai = value; }
        }

        public virtual System.String TenNguoiSuDung
        {
            get { return _TenNguoiSuDung; }
            set { _TenNguoiSuDung = value; }
        }

        public virtual System.String MaPhongBan
        {
            get { return _MaPhongBan; }
            set { _MaPhongBan = value; }
        }

        public virtual System.String ChucVu
        {
            get { return _ChucVu; }
            set { _ChucVu = value; }
        }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

        public virtual System.String TenTruyCap
        {
            get { return _TenTruyCap; }
            set { _TenTruyCap = value; }
        }

     }
}
